<?php
class  IndexAction extends CommonAction{
	public function index(){
		$this->display();
	}
	public function top(){
		import('Class.Category',APP_PATH);
		$cate=M('category')->order('sort asc')->select();
		$this->cate=node_merge($cate);
		$this->display();
	}
	public function main(){
		import('Class.Category',APP_PATH);
		$cate=M('category')->order('sort asc')->select();
		p(Category::getChildren($cate,4));
		$this->display();
	}
}
?>